<?php $this->_extends('_layouts/blank_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>
<?php $this->_block('conpno'); ?><?php echo $pageno;?><?php $this->_endblock(); ?>

<?php $this->_block('inits'); ?>
<script type="text/javascript" src="<?php echo $_BASE_DIR; ?>scripts/mocha-init.js"></script>
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="主机管理">
	  <table>
		<tr><th>主机组名</th><th>描述</th><th>创建时间</th><th>已连接主机数</th><th>总主机数</th><th>操作</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td><?php echo $s->groupname;?></td><td><?php echo $s->description;?></td><td><?php echo $s->datetime;?></td><td>0</td><td>2</td><td> <a href="<?php echo url('default::rulesetting/groupsets', array('groupid' => $s->id())); ?>">添加组规则</a></td></tr>
		<?php endforeach; ?>
		<tr>
      <td colspan="6"><center>
       共有 <font color="Red"><?php echo $pager['record_count'];?></font> 条记录,分为 <font color="Red"><?php echo $pager['page_count'];?></font> 页显示,当前第 <font color="Red"><?php echo $pager['current'];?></font>页,每页 <font color="Red"><?php echo $pager['page_size'];?></font> 条</center>
    </td>
    </tr>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>